package com.hdd.biz.account.service;

import com.hdd.biz.account.dto.BillRequest;
import com.hdd.biz.account.entity.AccountBill;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdd.dto.SuperResponse;

import java.math.BigDecimal;

/**
 * <p>
 * 账号 消费账单 服务类
 * </p>
 *
 * @author fang
 * @since 2021-02-24
 */
public interface AccountBillService extends IService<AccountBill> {


    /**
     * 添加流水记录
     * @param accountId
     * @param amount
     * @param type
     * @param remarks
     * @param rate
     * @param realityAmount
     * @param chargeAmount
     * @return
     */
    boolean addBill(String accountId, BigDecimal amount, String type, String remarks,String rate,String realityAmount,String chargeAmount,Integer payType);

    /**
     * 查询流水详情
     * @param request
     * @return
     */
    SuperResponse findBillById(BillRequest request );
}
